const db = require('../../db.config')
const Sequelize = db.sequelize
const Op = Sequelize.Op

const clickDetail = Sequelize.import('../../schema/recommend/clickDetail')

focusDetail.sync({force: false})

class ClickDetailModule {
  /**
   * 新增click
   */
  static async addClick(data) {
    clickDetail.create({
      detailId: data.detailId,
      userId: data.userId,
      time: 1
    })
  }
}

module.exports = ClickDetailModule
